.class public Llt/noframe/gpsfarmguide/map/CustomGoogleMap;
.super Ljava/lang/Object;
.source "CustomGoogleMap.java"


# instance fields
.field private final googleMap:Lcom/google/android/gms/maps/GoogleMap;

.field private onCameraChangeListenerList:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/google/android/gms/maps/GoogleMap$OnCameraIdleListener;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lcom/google/android/gms/maps/GoogleMap;)V
    .locals 1

    .line 16
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 28
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->onCameraChangeListenerList:Ljava/util/List;

    .line 17
    iput-object p1, p0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->googleMap:Lcom/google/android/gms/maps/GoogleMap;

    .line 19
    iget-object p1, p0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->googleMap:Lcom/google/android/gms/maps/GoogleMap;

    new-instance v0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap$1;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap$1;-><init>(Llt/noframe/gpsfarmguide/map/CustomGoogleMap;)V

    invoke-virtual {p1, v0}, Lcom/google/android/gms/maps/GoogleMap;->setOnCameraIdleListener(Lcom/google/android/gms/maps/GoogleMap$OnCameraIdleListener;)V

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/map/CustomGoogleMap;)V
    .locals 0

    .line 13
    invoke-direct {p0}, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->notifyCameraChanged()V

    return-void
.end method

.method private notifyCameraChanged()V
    .locals 2

    .line 39
    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->onCameraChangeListenerList:Ljava/util/List;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 40
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/google/android/gms/maps/GoogleMap$OnCameraIdleListener;

    .line 41
    invoke-interface {v1}, Lcom/google/android/gms/maps/GoogleMap$OnCameraIdleListener;->onCameraIdle()V

    goto :goto_0

    :cond_0
    return-void
.end method


# virtual methods
.method public addOnCameraChangeListener(Lcom/google/android/gms/maps/GoogleMap$OnCameraIdleListener;)V
    .locals 1

    .line 31
    iget-object v0, p0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->onCameraChangeListenerList:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    return-void
.end method

.method public getGoogleMap()Lcom/google/android/gms/maps/GoogleMap;
    .locals 1

    .line 46
    iget-object v0, p0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->googleMap:Lcom/google/android/gms/maps/GoogleMap;

    return-object v0
.end method

.method public removeOnCameraChangeListener(Lcom/google/android/gms/maps/GoogleMap$OnCameraIdleListener;)V
    .locals 1

    .line 35
    iget-object v0, p0, Llt/noframe/gpsfarmguide/map/CustomGoogleMap;->onCameraChangeListenerList:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    return-void
.end method
